<?php

/**
* MenuModule.class.php
*
* Concrete page module responsable for creating page footer
*
* @author     Blazej Zieba <b@zieba.info>
* @copyright  2007 konekto.com
* @version    CVS: $Id:$
*/

require_once("framework/PageModule.class.php");

// {{{ MenuModule

class MenuModule extends PageModule 
{
    // {{{ Class operations 

    // {{{ getContent

    /**
    * Function returns page content
    *
    */

    function getContent()
    {


        $options = &PEAR::getStaticProperty('CONFIG_INI','TEMPLATES'); 
        $global = &PEAR::getStaticProperty('CONFIG_INI','GLOBAL'); 

        $tpl = new HTML_Template_IT($options["templates_dir"]);
        $tpl->loadTemplatefile("user_menu.tpl.xhtml",true,true);
        
        $tpl->setCurrentBlock('inter_row');
        $tpl->setVariable("TITLE",_('Wyniki'));
        $tpl->setVariable("URL",rtrim($global['service_url'],'/')."/?cmd=ScoreBoard");
        $tpl->parseCurrentBlock('inter_row');
        $tpl->parse("row"); 

        $tpl->setCurrentBlock('inter_row');
        $tpl->setVariable("TITLE",_('Trofea'));
        $tpl->setVariable("URL",rtrim($global['service_url'],'/')."/?cmd=CodeList");
        $tpl->parseCurrentBlock('inter_row');
        $tpl->parse("row"); 

        $tpl->setCurrentBlock('inter_row');
        $tpl->setVariable("TITLE",_('Twitter'));
        $tpl->setVariable("URL",rtrim($global['service_url'],'/')."/?cmd=Twitter");
        $tpl->parseCurrentBlock('inter_row');
        $tpl->parse("row"); 

        $tpl->setCurrentBlock('inter_row');
        $tpl->setVariable("TITLE",_('Info'));
        $tpl->setVariable("URL",rtrim($global['service_url'],'/')."/?cmd=Info");
        $tpl->parseCurrentBlock('inter_row');
        $tpl->parse("row"); 
	

        $tpl->setCurrentBlock('end_row');
        $tpl->setVariable("TITLE",_('Poleć'));
        $tpl->setVariable("URL",rtrim($global['service_url'],'/')."/?cmd=Email");
        $tpl->parseCurrentBlock('end_row');
        $tpl->parse("row"); 


        return $tpl->get();
    }
    
    // }}}

    // }}}
}

// }}} 

?>
